package com.example.note_project.ui.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

/**
 * @Classname BaseNoteListFragment
 * @Description TODO
 * @Date 2020/12/3 23:55
 * @Created by yujun059
 */
public abstract class BaseNoteListFragment extends Fragment {
    protected View mRootView;

    abstract View createView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState);
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater,
                             @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        mRootView = createView(inflater, container, savedInstanceState);
        return mRootView;
    }

}
